/*
 * 
 * 
 * 
 */
package com.hboxs.asl.service;

import com.hboxs.asl.entity.Order;
import com.hboxs.asl.entity.Member;
import com.hboxs.asl.entity.OrderItem;

import java.util.List;

/**
 * Service - 订单项
 */
public interface OrderItemService extends BaseService<OrderItem, Long> {

    /**
     * 计算未评论的订单项数
     *
     * @param member    会员
     * @param hasReview 是否已评价
     */
    Long count(Member member, Boolean hasReview);

    /**
     * 获取当前会员为评价的订单项
     *
     * @param order
     * @return
     */
    List<OrderItem> findOrderItemsWithoutEvaluation(Order order);
}